﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Model
{
    public class Employee : BaseAttribute
    {
        public Employee() 
        {
            ID = 0;
            FirstName = string.Empty;
            LastName = string.Empty;
            Department = null;
            Section = null;
            SubSection = null;
            //Supervisor = null;
            Supervisor = 0;
            JobPosition = null;
            JobTitle = string.Empty;
            Email = string.Empty;
            SubBranch = null;
            Phone = string.Empty;
            Ext = string.Empty;
            Password = string.Empty;
            isAdmin = false;
            isActive = false;
            JoinDate = null;
            Privilege = null;
            BusinessGroupID = 0;
            isLock = false;
            NIK = string.Empty;
        }

        public int ID { get; set; }
        public string FirstName { get; set; }
        public string LastName { get; set; }
        public Department Department { get; set; }
        public Section Section { get; set; }
        public SubSection SubSection { get; set; }
        //public Employee Supervisor { get; set; }
        public int Supervisor { get; set; }
        public JobPosition JobPosition { get; set; }
        public string JobTitle { get; set; }
        public string Email { get; set; }
        public SubBranch SubBranch { get; set; }
        public string Phone { get; set; }
        public string Ext { get; set; }
        public string Password { get; set; }
        public bool isAdmin { get; set; }
        public bool isActive { get; set; }
        public DateTime? JoinDate { get; set; }
        public Privilege Privilege { get; set; }
        public int BusinessGroupID { get; set; }
        public bool isLock { get; set; }
        public string NIK { get; set; }
        //property untuk nampung total weight
        public string TotalWeight { get; set; }
    }
}